package com.smedi.ismedi.constructionproject.core.domain.service;

import com.smedi.ismedi.constructionproject.core.domain.aggregatemodel.ProjectBasic;

import java.time.LocalDate;

/**
 * @Author: xulinjun
 * @Date: 2021-6-8 11:08
 */
public interface ProjectBasicDomainService {
    ProjectBasic saveInfo(ProjectBasic projectBasic);

    Boolean updateInfo(ProjectBasic projectBasic);

    boolean duplicateProjectCode(String projectCode, Long projectId);

    Long getDurationDays(LocalDate date1, LocalDate date2);

    boolean validateMobileFormat(String mobile);

    boolean validateProject(Long projectId);

    boolean validateHrOrgHasProject(Long hrOrganizationId);

    void deleteProjectBasic(Long projectId);

    long updateProjectByName(String projectName,String dingDeptKey);


}
